package com.niiwoo.civet.trade.dao.mapper.credit;

import com.niiwoo.civet.trade.dao.entity.credit.CreditProjectDynamic;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CreditProjectDynamicMapperExt extends CreditProjectDynamicMapper {

    List<CreditProjectDynamic> queryCreditLoanGuaranteeProjectDetail(CreditProjectDynamic dynamic);

    /**
     * 根据标的ID和用户ID查询标的动态
     * @param projectId
     * @param userId(用于分库分表路由)
     * @return
     */
    List<CreditProjectDynamic> queryCreditProjectDynamicList(@Param("projectId") Long projectId, @Param("userId") String userId,
                                                             @Param("opId") Long opId, @Param("type") Byte type);
}